package com.jmu.shoppingcart;

public class Commodity {
    private String name;
    private double price;
    private int  ID;

    public Commodity(String name, double price, int ID) {
        this.name = name;
        this.price = price;
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getID() {
        return ID;
    }

    public void setID(int  ID) {
        this.ID = ID;
    }
    @Override
    public String toString() {
        return ID+"\t\t\t"+name+"\t\t\t\t"+price+"\t\t\t\t";
    }

}
